package com.cwx.mychat.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 作者： cwx
 * 时间： 2025/2/14 10:50
 * 版本： 1.0
 * 注释：
 */
@Configuration
@ConfigurationProperties(prefix = "socket.io")
public class SocketIoProperties {

    private String host;
    private Integer port;
    private String origin;
    private Integer bossThreads;
    private Integer workerThreads;
    private Boolean allowCustomRequests;
    private Integer upgradeTimeout;
    private Integer pingTimeout;
    private Integer pingInterval;
    private List<String> namespaces;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public Integer getBossThreads() {
        return bossThreads;
    }

    public void setBossThreads(Integer bossThreads) {
        this.bossThreads = bossThreads;
    }

    public Integer getWorkerThreads() {
        return workerThreads;
    }

    public void setWorkerThreads(Integer workerThreads) {
        this.workerThreads = workerThreads;
    }

    public Boolean getAllowCustomRequests() {
        return allowCustomRequests;
    }

    public void setAllowCustomRequests(Boolean allowCustomRequests) {
        this.allowCustomRequests = allowCustomRequests;
    }

    public Integer getUpgradeTimeout() {
        return upgradeTimeout;
    }

    public void setUpgradeTimeout(Integer upgradeTimeout) {
        this.upgradeTimeout = upgradeTimeout;
    }

    public Integer getPingTimeout() {
        return pingTimeout;
    }

    public void setPingTimeout(Integer pingTimeout) {
        this.pingTimeout = pingTimeout;
    }

    public Integer getPingInterval() {
        return pingInterval;
    }

    public void setPingInterval(Integer pingInterval) {
        this.pingInterval = pingInterval;
    }

    public List<String> getNamespaces() {
        return namespaces;
    }

    public void setNamespaces(List<String> namespaces) {
        this.namespaces = namespaces;
    }

}
